package com.carkeeper.appraise.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    //添加评价队列
    public static final String AD_APPRAISAL_QUEUE="ad_appraisal_queue";
    //删除评价队列
    public static final String DEL_APPRAISAL_QUEUE="del_appraisal_queue";

    //声明队列
    @Bean
    public Queue queueAd(){
        return new Queue(AD_APPRAISAL_QUEUE);
    }

    //声明队列
    @Bean
    public Queue queueDel(){
        return new Queue(DEL_APPRAISAL_QUEUE);
    }


}
